<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
</head>

<body>
    <div id='app'>
        {{msg}}
        ======
        <father></father>
    </div>
    <script type='text/javascript'>
        var son = {
            template: `<p>我是son组件</p>`
        }
        var father = {
            template: `<div>
                我是一个私有的子组件
                    <son></son>
                </div>`,
            methods: {},
            components: {
                son: son
            }
        }

        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue'
            },
            components: {
                father
            }
        });
    </script>
</body>

</html>